/**
 * 存放请求
 */
import http, { type CatsTree, type First } from '@/api'


// 首页
export function getFirstList(){
    return http.get<First.myFirst>('classify')
}

// 搜索页 的请求
export function getSearchNewGoodsList(params:{_page:number;_limit:number}){
    return http.get<CatsTree.goodsItem>('newgoods',params)
}

export function getSearchSellGoodsList(params:{_page:number;_limit:number}){
    return http.get<CatsTree.goodsItem>('sellgoods',params)
}

export function getSearchSynGoodsList(params:{_page:number;_limit:number}){
    return http.get<CatsTree.goodsItem>('syngoods',params)
}